import { Switch, Route } from "react-router-dom";
import One from "./One";
import Two from "./Two";

export default function Home() {
  return (
    <div>
      <h2>Home</h2>

      <div style={{ padding: "50px" }}>
        {/* 
          /home/one      => One
          /home/two      => Two
        */}

        <Switch>
          <Route path="/home/one" component={One} />
          <Route path="/home/two" component={Two} />
        </Switch>
      </div>
    </div>
  );
}
